package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.domain.Role;
import org.example.domain.RoleQuery;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author blackTry
 * @since 2021-04-27
 */
public interface IRoleService extends IService<Role> {

    Integer addRole(Role role);

    Integer removeRolesByIds(List<Long> ids);

    Integer updateRole(Role role);

    Role getOneById(Long id);

    List<Role> getRoles(Long identityId);
}
